package cn.webrx.calendarexample;


import java.util.Calendar;
import java.util.Date;

public class Ex3 {
    public static void main(String[] args) {
        var c = Calendar.getInstance();
        long t2 = new Date().getTime();
        //两年前
        //c.add(Calendar.YEAR, -2);
        //10天后
        //c.add(Calendar.DATE, 10);
        System.out.printf("%tF %<tT %<tA %<tB %<tp%n", c);

        long t1 = c.getTimeInMillis();
        long t3 = System.currentTimeMillis();
        System.out.println(t1);
        System.out.println(t2);
        System.out.println(t3);

        Date dd = c.getTime();


    }
}
